#ifndef DATAAUTH
#define DATAAUTH

#include <QString>
#include "datahandle.h"

class DataAuth
{
public:
    static DataAuth *s_pInstance;
    static DataAuth *getInstance();
private:
    DataAuth(){}
signals:
    void sigMsg(QString str);
public:
    bool authInfoIntegriy(QString &strErr,int feature,MonthAndInnerCardInfo info);
private:
    void MonSelectFeature(QString &strErr,bool &result,int feature,MonthAndInnerCardInfo info);

    void monthAddAuth(QString &strErr,bool &result,MonthAndInnerCardInfo info);
    void monthDelAuth(QString &strErr,bool &result,MonthAndInnerCardInfo info);
    void monthModifyAuth(QString &strErr,bool &result,MonthAndInnerCardInfo info);
    void monthSelectAuth(QString &strErr,bool &result,MonthAndInnerCardInfo info);
};

#endif // DATAAUTH

